Train your first model
Once a dataset is labeled, training a model takes one page: a name, the images and tags it learns from, how they are split, the kind of model and how long it trains. The platform checks that nothing is missing and tells you the price before you start. This guide goes through that page for a dataset of glass jars.
What you will learn
- Where to start a training
- What each section of the training page decides
- How much a training costs and what it needs
Before you start
You need a labeled dataset: in classification, at least 10 images in each of at least two tags. Check that a dataset is ready to train tells you what is missing.
1. Open the models of the dataset
Open the dataset and click the «Models» tab. It lists every model trained on this dataset; this one has none yet.

2. Start a production training
Click «Train a new model» and choose «Production training», a model to use on the line. «Labeling assistant» trains a model that only helps you label, and exists for object detection and text recognition datasets.

3. Name the model
The training page has four numbered sections on the left and a summary on the right. In «Model name», type a name that tells this model apart from the next ones: up to 32 characters, letters, numbers and underscores. Two models of a dataset cannot share a name.

4. Check the images and tags
«Images and tags» lists the tags of the dataset with their images. The model learns the ticked ones:
- A tag needs at least 10 images. One with fewer is left unticked, here «stained», with seven.
- «Unclassified» is the tag of the images nobody has labeled. Leave it unticked.
- «Output label» trains several tags as one: see Choose the images, tags and split of a training.

5. Check the split
«Data division» decides which images teach the model and which ones judge it. «Auto assignment», the default, shares them out at random: 80 % for training, 10 % for validation while it trains, 10 % to test the finished model. «Current labeled» uses the split each image already has. Set the train, validation and test split explains it.

6. Choose the kind of model
«Task» comes from the type of the dataset, here «Classification». «Model» offers the architectures that can learn it, newest last; the platform proposes one. «Model Size» goes from «Nano» to «Extra Large»: a larger model can learn finer differences, but needs more images, trains longer, costs more and is slower on the line. Start small.

7. Set the training time
Move «Training time»: from 5 minutes to 3 hours. The model stops earlier on its own when it stops improving. A few dozen images need little time; thousands of images and a larger model need more. Here, five minutes.

8. Check the image size
«Image Size» is the size the images are resized to for training. It starts at the size of your images; a smaller size trains faster and costs less, but small defects may vanish. The arrow next to each value brings back the original. «Advanced settings», below, holds the export formats and the fine parameters of the model: the defaults suit a first model.

9. Read the summary
The card on the right sums the training up: images, tags, model and time. It says «Ready to train» or lists what is missing, such as a tag with too few images. Below, the machine the training will use and its price in tokens, with what the project has left this period. «Train» stays disabled while something is missing or the tokens are not enough.

10. Ask for an email
Click «Train». The dialog offers to send an email when the training ends: type an address, add more with «Add another email», or leave it empty.

11. Launch the training
Click «Train». The page follows the training. First it says «Preparing environment», which can take a few minutes: keep the window open until it changes, as the page asks. Then the training waits for a machine, trains and is tested; from then on you can leave the page and find the training again in «Models». Follow a training and understand how it ended goes on from here.

How long and how much
A training first waits for a machine, usually a few minutes, then trains for the time you set or less, and finally tests the model. The price shown before you train is charged when it starts. A training you stop while it still waits for its machine gets its tokens back; one that has started training keeps the charge, even if it stops early.
Next steps
- Follow a training and understand how it ended
- Choose the images, tags and split of a training
- My images are not used in training
Recorded on Rosepetal release 1.8.15.